package com.mypack.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
public class Email implements Serializable {
	private static final long serialVersionUID = 1L;
	
	/**
	 * identifier
	 */
	private Long id;
	
	/**
	 * 联系人
	 */
	private String contactor;
	
	/**
	 * 联系方式 
	 */
	private String contactmethod;
	
	/**
	 * 内容
	 */
	private String content;
	
	/**
	 * 时间
	 */
	private Date date = new Date();
	
	public Email() {
		
	}

	public Email(String contactor, String contactmethod, String content) {
		this.contactor = contactor;
		this.contactmethod = contactmethod;
		this.content = content;
	}

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getContactor() {
		return contactor;
	}

	public void setContactor(String contactor) {
		this.contactor = contactor;
	}

	public String getContactmethod() {
		return contactmethod;
	}

	public void setContactmethod(String contactmethod) {
		this.contactmethod = contactmethod;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

}
